<?php
class CommentAction extends CommonAction
{
	/**
	 * Ajax方法
	 */
	public function add()
	{
		$book_id = $_POST['book_id'];
		$content = $_POST['content'];
		$comment_dao = new CommentModel();
		$comment_dao->addComment($book_id, $_SESSION['user']['id'], $content);
		$this->ajaxReturn(null, null, 1);
	}
}

?>